package com.motorola.dp.jenkinsmonitor.model.util.dom;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 *
 * Used for mapping a model class to DOM node. E.g.:
 *
 *     <node>
 *     </node>
 *
 * can be mapped as:
 *
 *     @DomEntity(name="node")
 *     class Node
 *
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface DomEntity {

    String NAME_UNSPECIFIED = "[unspecified]";

    String name() default NAME_UNSPECIFIED;
}
